#include <stdio.h>
#include <stdlib.h>

// 包含你提供的日志库代码
#include "Log.h"

int main() 
{
    // 测试将日志输出到屏幕
    EnableScreen();

    LOG(DEBUG, "This is a debug message.\n");
    LOG(INFO, "This is an info message.\n");
    LOG(WARNING, "This is a warning message.\n");
    LOG(ERROR, "This is an error message.\n");
    LOG(FATAL, "This is a fatal message.\n");

    // 测试将日志输出到文件
    EnableFILE();

    LOG(DEBUG, "This is a debug message written to file.\n");
    LOG(INFO, "This is an info message written to file.\n");
    LOG(WARNING, "This is a warning message written to file.\n");
    LOG(ERROR, "This is an error message written to file.\n");
    LOG(FATAL, "This is a fatal message written to file.\n");

    return 0;
}